<template>
  <div class="user">
    <div class="userbox">
      <div class="image">
        <img src="/static/images/M.png" alt="">
      </div>
      <div>尊敬的{{userInfo.username}}用户您好，欢迎使用Xmall商城</div>
      <button @click="$router.back()">返回</button>
    </div>
  </div>
</template>

<script>
import { mapState} from "vuex";
export default {
  name: 'User',
  computed: {
    ...mapState(["userInfo"]),
  }
}
</script>

<style scoped>
.user {
  min-height: 800px;
  min-width: 630px;
  font-size: 20px;
  text-align: center;
}
button {
  width: 100px;
  height: 50px;
  background: #f3f3f3;
  border-radius: 10px;
  cursor: pointer;
}
.userbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
.userbox div {
  margin: 25px 0;
}
/* .image {
  position: relative;
  left: 100px;
  width: 200px;
  height: 200px;
  background: url('/static/images/M.png');
} */
</style>